# core/urls.py
from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from django.contrib.auth.views import LogoutView
urlpatterns = [
    path('', views.home, name='home'),
    path('search/', views.search, name='search'),
    path('trash/<int:item_id>/', views.trash_detail, name='trash_detail'),


    path('register/', views.register, name='register'),
    path('login/', auth_views.LoginView.as_view(template_name='core/login.html'), name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('my_history/', views.my_history, name='my_history'),
    path('favorite/<int:item_id>/', views.toggle_favorite, name='toggle_favorite'),
    path('my_favorites/', views.my_favorites, name='my_favorites'),
    path('articles/', views.article_list, name='article_list'),
    path('articles/<int:article_id>/', views.article_detail, name='article_detail'),


]
